package ooday01test;

public class Car {
    public String brand;
    public String color;
    public double price;
    //构造方法
    public Car(){

    }
    //构造方法

    public Car(String brand, String color, double price) {
        this.brand = brand;
        this.color = color;
        this.price = price;
    }
    public void start(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"价位的，车启动了");
    }
    public void run(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"价位的，车开始跑起来了");
    }
    public void stop(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"价位的，车停止了");
    }
}
